import time
from selenium import webdriver
from selenium.webdriver.common.by import By

driver = webdriver.Chrome()
driver.maximize_window()

driver.get('https://sahitest.com/demo/selectTest.htm')

ele = driver.find_element(By.XPATH, '//select[@id="s1"]/option[2]')
print(ele.get_attribute('outerHTML'))
time.sleep(3)
ele.click()
time.sleep(3)
driver.quit()
